<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="${pageContext.request.contextPath }/bootstrap/js/jquery.min.js?v=2.1.4"></script> 
<link href="${pageContext.request.contextPath }/bootstrap/css/bootstrap.min.css" rel="stylesheet" />  
<script src="${pageContext.request.contextPath }/bootstrap/js/bootstrap.min.js"></script>  

<link href="${pageContext.request.contextPath }/bootstrap/css/bootstrap-datetimepicker.min.css" rel="stylesheet" />  
<script src="${pageContext.request.contextPath }/bootstrap/js/moment-with-locales.min.js"></script>
<script src="${pageContext.request.contextPath }/bootstrap/js/bootstrap-datetimepicker.min.js"></script>
<!-- <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>  
<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">  
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>  
  
<script src="https://cdn.bootcss.com/moment.js/2.18.1/moment-with-locales.min.js"></script>  
<link href="https://cdn.bootcss.com/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.css" rel="stylesheet">  
<script src="https://cdn.bootcss.com/bootstrap-datetimepicker/4.17.47/js/bootstrap-datetimepicker.min.js"></script> -->
<title>日期选择器</title>
</head>
<body>
<div class="row">  
    <div class='col-sm-6'>  
        <div class="form-group">  
            <label>选择日期：</label>  
            <!--指定 date标记-->  
            <div class='input-group date' id='datetimepicker1'>  
                <input type='text' class="form-control" />  
                <span class="input-group-addon">  
                    <span class="glyphicon glyphicon-calendar"></span>  
                </span>  
            </div>  
        </div>  
    </div>  
    <div class='col-sm-6'>  
        <div class="form-group">  
            <label>选择日期+时间：</label>  
            <!--指定 date标记-->  
            <div class='input-group date' id='datetimepicker2'>  
                <input type='text' class="form-control" />  
                <span class="input-group-addon">  
                    <span class="glyphicon glyphicon-calendar"></span>  
                </span>  
            </div>  
        </div>  
    </div>  
</div>
<script type="text/javascript">
	$(function () {  
	    $('#datetimepicker1').datetimepicker({  
	        format: 'YYYY-MM-DD',  
	        locale: moment.locale('zh-cn')  
	    });  
	    $('#datetimepicker2').datetimepicker({  
	        format: 'YYYY-MM-DD hh:mm',  
	        locale: moment.locale('zh-cn')  
	    });  
	});
</script>
</body>
</html>